/**
 * 代码行号样式
 */

.markdown-body {
  pre {
    position: relative;

    &.has-numbering {
      padding-left: 56px;
    }
  }

  .pre-numbering {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    margin: 0;
    padding: 16px 8px 16px 0;
    text-align: right;
    color: rgba(255, 255, 255, 0.38);
    border-right: 1px solid rgba(255, 255, 255, 0.12);

    li {
      line-height: 1.67;
      font-family: Consolas, Roboto, Noto Sans SC, Helvetica, Arial, sans-serif;
    }
  }

  .mdui-theme-layout-light & {
    .pre-numbering {
      color: rgba(0, 0, 0, 0.28);
      border-right: 1px solid rgba(0, 0, 0, 0.12);
    }
  }
}